package com.lw.vod.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

@FeignClient("service-edu")
@Component
public interface CourseFeignClient {

    //rpc判断小节是否收费
    @GetMapping("/api/edu/video/inner/isFree/{videoId}")
    public Map vodIsFree(@PathVariable("videoId") String videoId);
}
